package com.edu.service.impl;

import com.edu.dao.UserDao;
import com.edu.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Service 功能和用法 同 @Component
 *  用于 业务层
 */
@Service
public class UserServiceImpl2 implements UserService {

    @Override
    public void login() {
        System.out.println("执行了 UserServiceImpl2 里的登录方法");
    }
}
